package com.hlkj.warboot.configurer.util.enums;

import lombok.Data;

/**
 * @Description 数据字典
 * @Author: 李星 lixing_java@163.com
 * @Date 2019/6/29 22:47
 */
public enum DictionaryEnum {
    ADMIN_GRADE_SUPER_ADMIN(1, "超级管理员"),
    ADMIN_GRADE_PROVINCE(2, "省级管理员"),
    ADMIN_GRADE_CITY(3, "市级管理员"),
    ADMIN_GRADE_AREA(4, "区级管理员"),
    ADMIN_STATUS_EFFECTIVE(1, "有效"),
    ADMIN_STATUS_LOCKED(2, "被锁"),
    ADMIN_STATUS_PROHIBIT(3, "禁用"),

    USER_STATE_EFFECTIVE(1, "有效"),
    USER_STATE_LOCKED(2, "被锁"),
    USER_STATE_PROHIBIT(3, "禁用"),

    SEX_MALE(1, "男"),
    SEX_FEMALE(2, "女"),
    SEX_OTHER(3, "未知"),

    MAIL_FORGET_PASSWORD( 1, "忘记密码" ),
    VERIFY_CODE_LOGIN( 1, "登陆" ),
    VERIFY_CODE_PASSWORD( 2, "找回密码" ),

    RESPONSE_STATUS_TRUE( 0, "响应成功" ),
    RESPONSE_STATUS_FALSE( 1, "响应失败" ),
    ;

    private int value; // 值
    private String describe; // 描述

    DictionaryEnum(int value, String describe) {
        this.value = value;
        this.describe = describe;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }
}
